package com.ytjj.qmyx.mall.mapper;

import com.ytjj.qmyx.mall.model.GroupBuyUserRel;
import com.ytjj.qmyx.mall.model.GroupBuyUserRelExample;
import java.util.List;
import org.apache.ibatis.annotations.Param;

public interface GroupBuyUserRelMapper {
    long countByExample(GroupBuyUserRelExample example);

    int deleteByExample(GroupBuyUserRelExample example);

    int deleteByPrimaryKey(Integer id);

    int insert(GroupBuyUserRel record);

    int insertSelective(GroupBuyUserRel record);

    List<GroupBuyUserRel> selectByExample(GroupBuyUserRelExample example);

    GroupBuyUserRel selectByPrimaryKey(Integer id);

    int updateByExampleSelective(@Param("record") GroupBuyUserRel record, @Param("example") GroupBuyUserRelExample example);

    int updateByExample(@Param("record") GroupBuyUserRel record, @Param("example") GroupBuyUserRelExample example);

    int updateByPrimaryKeySelective(GroupBuyUserRel record);

    int updateByPrimaryKey(GroupBuyUserRel record);

    Integer queryProcessGroupBuyNumByProductId(Integer productId);

    Integer queryGroupBuyInfo(@Param("productId") Integer productId, @Param("userId") Integer userId);
}